home *** CD-ROM | disk | FTP | other *** search
- Path: oxy.rust.net!usenet
- From: Neil <neil@aol2.com>
- Newsgroups: comp.lang.c
- Subject: Solution to my own problem!
- Date: Sun, 10 Mar 1996 13:26:15 -0500
- Organization: Almighty Online
- Message-ID: <31431EC7.7632@aol2.com>
- NNTP-Posting-Host: liv-27.rust.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- (Pardon the fact that there's no response to an original
- message.. but I can't seem to find my original question)
-
- Okay..
-
- I was wondering how to take in a file and OUTPUT IT TO SCREEN
- (raw text/ascii file)
-
- here goes..
- {
- ifstream infile("menu.htm", ios::in);
- while (!infile.eof())
- cout.put( (char) infile.get() );
- }
-
- What this does is take "menu.htm" and display it to the screen
- which is pretty useful if you're writing a CGI script/app.
-
- Thanks,
- Neil
-